/*
 * playerstate.cpp
 *
 *  Created on: 2009-09-02
 *      Author: ck
 */

#include "playerstate.h"
#include <QDebug>

PlayerState::PlayerState()
{


}

PlayerState::~PlayerState()
{

}

bool PlayerState::differsFrom(const PlayerState& ps) const
{
	//qDebug() << getPosition() << ps.getPosition() << getVelocity() << ps.getVelocity() << ((getPosition() != ps.getPosition()) || (getVelocity() != ps.getVelocity()));
	return ((getPosition() != ps.getPosition()) || (getVelocity() != ps.getVelocity()));
}

void PlayerState::setPosition(QPointF pos)
{
	position = pos;
}
void PlayerState::setVelocity(QPointF vel)
{
	velocity = vel;
}

void PlayerState::setIsAlive(bool ia)
{
	isAlive = ia;
}

QPointF PlayerState::getPosition() const
{
	return position;
}
QPointF PlayerState::getVelocity() const
{
	return velocity;
}

bool PlayerState::getIsAlive() const
{
	return isAlive;
}
